package com.ruoyi.service.jpjs.impl;

import com.ruoyi.framework.util.ShiroUtils;
import com.ruoyi.mapper.jpjs.PublicMapper;
import com.ruoyi.service.jpjs.PublicService;
import com.ruoyi.system.domain.SysUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class PublicServiceImpl implements PublicService {

    @Autowired
    PublicMapper publicMapper;

    @Override
    public List<Map<String, Object>> findUserComp() {
        SysUser user = ShiroUtils.getSysUser();
        return publicMapper.findUserComp(user.getUserId());
    }

    @Override
    public List<Map<String, Object>> findUserCompAndJszb() {
        SysUser user = ShiroUtils.getSysUser();
        return publicMapper.findUserCompAndJszb(user.getUserId());
    }
}
